package org.jeecg.modules.demo.jxcx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.ddyht.entity.DdygPici;
import org.jeecg.modules.demo.jxcx.dto.model;
import org.jeecg.modules.demo.jxcx.dto.traner;
import org.jeecg.modules.demo.jxcx.mapper.JxcPiciMapper;
import org.jeecg.modules.demo.jxcx.po.JxcPici;
import org.jeecg.modules.demo.jxcx.service.JxcPiciService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author DeskTop
* @description 针对表【jxc_pici】的数据库操作Service实现
* @createDate 2024-08-05 15:20:03
*/
@Service
public class JxcPiciServiceImpl extends ServiceImpl<JxcPiciMapper, JxcPici>
implements JxcPiciService{

    @Override
    public List<DdygPici> getByall(String companyId, String id, String orstate) {
        return baseMapper.getByall(companyId,id,orstate);
    }

    @Override
    public List<JxcPici> getBylike(String like, String companyId, String orstate, String id) {
        return baseMapper.getBylike(like,companyId,orstate,id);
    }

    @Override
    public JxcPici getByOnlyid(String onlyid) {
        return baseMapper.getByOnlyid(onlyid);
    }

    @Override
    public void removeByOnlyid(String onlyid) {
        baseMapper.removeByOnlyid(onlyid);
    }

    @Override
    public Boolean updateByOnlyid(String model,String newnumber, String newunitPrice, String newamount, String onlyid) {
        return baseMapper.updateByOnlyid(model,newnumber,newunitPrice,newamount,onlyid);
    }

    @Override
    public List<model> getmodelall(String companyId) {
        return baseMapper.getmodelall(companyId);
    }

    @Override
    public List<traner> gettranerall(String companyId) {
        return baseMapper.gettranerall(companyId);
    }

}
